package com.ly.user_system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ly.user_system.code.BaseEntity;
import com.ly.user_system.detail.UserInfoDetail;
import com.ly.user_system.dto.UserInfoDTO;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import lombok.Data;

@TableName("user_info")
@Data
@AutoMappers({
        @AutoMapper(target = UserInfoDTO.class),
        @AutoMapper(target = UserInfoDetail.class)
})
public class UserInfo extends BaseEntity {


    @TableField("unionid")
    private String unionid;
    @TableField("avatar_url")
    private String avatarUrl;
    @TableField("nick_name")
    private String nickName;
    @TableField("phone")
    private String phone;
    @TableField("gender")
    private Integer gender;
    @TableField("status")
    private Integer status;
    @TableField("login_type")
    private String loginType;
    @TableField("password")
    private String password;
}